package com.ttai.presenter.activity;

import android.util.Log;
import android.widget.Toast;

import com.google.gson.JsonObject;
import com.ttai.model.net.ResponseInfo;
import com.ttai.presenter.base.BasePresenter;
import com.ttai.ui.activity.UaP_Protect;

import retrofit2.Call;

public class SetKeyTipPresenter extends BasePresenter {
    UaP_Protect uaP_protect;

    public SetKeyTipPresenter(UaP_Protect uaP_protect) {
        this.uaP_protect = uaP_protect;
    }

    @Override
    protected void showError(String message) {

    }

    @Override
    protected void parseJson(JsonObject json) {
//        Toast.makeText(uaP_protect,"密钥提示清空",Toast.LENGTH_SHORT).show();
        Log.i("4444", "parseJson: 秘钥清空");
    }
    public void setKetTip(String token,String keyTip){
        Call<ResponseInfo> seyKeyTipInfo = responseInfoApi.setkeytip(token,keyTip);
        seyKeyTipInfo.enqueue(new CallBackAdapter());
    }
}
